package com.zjp.demo02251.dao;

import javax.persistence.Entity;

/**
 * @author james
 * @Title: Result
 * @Package com.zjp.demo02251.dao
 * @Description:
 * @date 2018/2/25  18:43
 */

public class Result<T> {

    //code
    private  int code;
    //msg
    private String msg;
    //deta
    private T data;

    public Result() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Result{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
